home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_shs_dlog_freeze.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  65 lines

  1. # Jones 3D Cog Script
  2. #
  3. # shs_Dlog_freeze.cog   Say the line, Indy.  
  4. #
  5. # [JWC]
  6. #
  7. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  8. #
  9. # ========================================================================================
  10.  
  11. symbols
  12.  
  13. message     startup
  14. message     entered
  15.                                                           
  16.  
  17. sound        in_freeze=Rv02j02.wav   local
  18.  
  19. surface     trigger
  20.  
  21. thing        player            local
  22. #thing        target
  23. #thing         interpcam
  24.  
  25. int            spoken=0        local
  26.  
  27. end
  28.  
  29. # ========================================================================================
  30.  
  31. code
  32.  
  33. startup:
  34.     
  35.           
  36.     player = GetLocalPlayerThing();
  37.     return;
  38.     
  39. entered:
  40.     
  41.     if ((GetSenderRef() == trigger) && (spoken == 0)) 
  42.     {
  43.         spoken=1;
  44.         sleep(.1);
  45.         MakeMeStop();
  46.         StartCutscene(1);
  47.         
  48.         
  49.         # Camera stuff
  50.         
  51.         # "I'm not jumping in there..."
  52.         PlayVoice(player, in_freeze, 1.0, 1);
  53.         
  54.         #RestoreExtCam();
  55.         ClearActorFlags(player, 0x200000); # player in control
  56.         EndCutscene();
  57.     }
  58.     
  59. return;
  60.      
  61.   
  62.  
  63. end
  64.  
  65.